x86/mm: Teach paging to page table-based p2m
authorAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 29 Mar 2012 11:01:33 +0000 (12:01 +0100)
committerAndres Lagar-Cavilla <andres@lagarcavilla.org>
Thu, 29 Mar 2012 11:01:33 +0000 (12:01 +0100)
commit6a5fc81607c60d039652f0ea1926679f094bba19
tree7dbb465edfcf10be6030dc0f39951f5ccc5fb1c4
parent1fb4e798c6655dc84b7f5a52b1604ce42a4e7624
x86/mm: Teach paging to page table-based p2m

The p2m-pt.c code, used by both shadow and AMD NPT modes, was not aware of
paging types, and the implications those types have on p2m entries. Add support
to the page table-based p2m to understand the paging types. This is a necessary
step towards enabling memory paging on AMD NPT mode, but not yet the full
solution.

Tested not to break neither shadow mode nor "normal" (i.e. no paging) AMD NPT
mode.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/p2m-pt.c